package router

import (
	"github.com/gin-gonic/gin"
	"net/http"
	"repo-mng-sys/handlers"
)

func Init() *gin.Engine {

	r := gin.Default()

	r.GET("/", func(c *gin.Context) {
		c.String(http.StatusOK, "hello World!")
	})

	r.GET("repoList", handlers.RepoList)
	r.GET("repoShow", handlers.RepoShow)
	return r
}
